﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace eLoan.Models
{
    [Table("Agent")]
    public class Agent : AgentFields
    { }

    public class AgentFields
    {
        [Key]
        [DatabaseGeneratedAttribute(DatabaseGeneratedOption.Identity)]
        [Display(Name = "ID")]
        public int ID { get; set; }

        [Required]
        [Display(Name = "Agent Name")]
        [StringLength(100)]
        public string AgentName { get; set; }

        [Required]
        [Display(Name = "Branch")]
        public string BranchCode { get; set; }

        [Required]
        [Display(Name = "Address")]
        [StringLength(200)]
        public string Address { get; set; }

        [Required]
        [Display(Name = "Contact Numbers")]
        [StringLength(200)]
        public string ContactNumbers { get; set; }

        [Required]
        [Display(Name = "Guarantor")]
        [StringLength(200)]
        public string Guarantor { get; set; }

        [Required]
        [Display(Name = "Guarantor Contact Numbers")]
        [StringLength(200)]
        public string GuarantorContactNumbers { get; set; }

        [Display(Name = "Is Active")]
        public bool IsActive { get; set; }
    }

}